define(function (require, exports, module) {
    Vue.use(Vuex);
    var store = new Vuex.Store({
        state: {
            username: "",
        },
        mutations: {
            update_username: function (state, username) {
                state.username = username;
            },
        },
        getters: {
            getter_username: function (state) {
                return state.username;
            },
        },
        actions: {
            update_username: function (context, username) {
                context.commit("update_username", username);
            },
        },
    });

    Vue.prototype.$store = store;

    module.exports = store;
});
